import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/node',
    name: 'node',
    component: () => import(/* webpackChunkName: "node" */ '../views/node.vue')
  },
  {
    path: '/group',
    name: 'group',
    component: () => import(/* webpackChunkName: "node" */ '../views/group.vue')
  },
  {
    path: '/grid',
    name: 'grid',
    component: () => import(/* webpackChunkName: "grid" */ '../views/layout.vue')
  },
  {
    path: '/tools',
    name: 'tools',
    component: () => import(/* webpackChunkName: "tool" */ '../views/tools.vue')
  },
  {
    path: '/cusnode',
    name: 'customNode',
    component: () => import(/* webpackChunkName: "customNode" */ '../views/customNode.vue')
  },
  {
    path: '/port',
    name: 'port',
    component: () => import(/* webpackChunkName: "customNode" */ '../views/port.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
